"""
转换任务接口模块
"""

from flask import Blueprint, request, jsonify
from datetime import datetime

bp = Blueprint('convert', __name__, url_prefix='/api')

@bp.route('/convert', methods=['POST'])
def start_conversion():
    """
    启动转换任务接口
    """
    try:
        response = {
            "success": True,
            "message": "转换任务已启动",
            "data": {},
            "timestamp": datetime.utcnow().isoformat()
        }
        
        return jsonify(response)
        
    except Exception as e:
        return jsonify({
            "success": False,
            "message": "转换任务启动失败",
            "error_code": "CONVERSION_ERROR",
            "details": str(e),
            "timestamp": datetime.utcnow().isoformat()
        }), 500